]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use AppFolderDialog grabHelper to obtain key focus on popup()
authorsorelz <sorelz.zen498@passinbox.com>
Tue, 2 Jul 2024 20:17:35 +0000 (16:17 -0400)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 3 Aug 2024 18:04:40 +0000 (20:04 +0200)
When an app folder is opened it would do so without grabbing the
keyboard focus, so one could not navigate with the arrow keys without
pressing Tab. This adds the focus parameter to popup()'s grab, which
sets the key focus to the elements of the folder when it is opened.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3338>
(cherry picked from commit 9569239ec5e774f59bb973adb34196b984c50e85)

js/ui/appDisplay.js

index 7ffec7b700f00b73e976f0ccd9e6dc9f7fdf1584..b9c4827c5423249d3a501c15f35e1a51a5b0f990 100644 (file)
@@ -2903,6 +2903,7 @@ export const AppFolderDialog = GObject.registerClass({
 
         this._isOpen = this._grabHelper.grab({
             actor: this,
+            focus: this._editButton,
             onUngrab: () => this.popdown(),
         });